Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting assistance requested!
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#6
RE: Scripting assistance requested!

Kyle's script pretty much does the job. Some things could be removed, but there is nothing wrong with it - everyone scripts in their unique way.

(06-12-2011, 12:51 AM)SLAMnesia Wrote:
(06-11-2011, 01:04 PM)Kyle Wrote: Make an area inside of the cleaner and then add an EntityCollideCallback for the collision of "dirty_object" and "cleaner_area". You would also have to make sure that the "dirty_object" is inside of the "cleaner" when the player closes the "cleaner_door", causing it to lock.

umm you want me to make the script for the EntityCollideCallback? I donno much about scripting, I can do simple stuff but levers and cranks jam me up pretty hard. and what should this function; """Make an area inside of the cleaner and then add an EntityCollideCallback for the collision of "dirty_object" and "cleaner_area" """ do? Im just confused sorry

You should create a script area inside of the cleaner named "cleaner_area". The rest is done in his script. The only thing missing is to add the lights you want and set them to radius 0.
Then create 2 timer functions which uses the command:
FadeLightTo(string& asLightName, float afR, float afG, float afB, float afA, float afRadius, float afTime);


As for the effects you are looking for refer to the:
http://wiki.frictionalgames.com/hpl2/amn..._functions

Trying is learning Smile


[Image: mZiYnxe.png]


06-12-2011, 01:31 AM
Find


Messages In This Thread
Scripting assistance requested! - by SLAMnesia - 06-11-2011, 08:53 AM
RE: SUP /B/! - by laser50 - 06-11-2011, 10:29 AM
RE: SUP /B/! - by xtron - 06-11-2011, 12:34 PM
RE: SUP /B/! - by Kyle - 06-11-2011, 01:04 PM
RE: SUP /B/! - by SLAMnesia - 06-12-2011, 12:51 AM
RE: Scripting assistance requested! - by Acies - 06-12-2011, 01:31 AM
RE: Scripting assistance requested! - by Kyle - 06-12-2011, 12:11 PM



Users browsing this thread: 1 Guest(s)