[php]
self notifyonplayercommand ("F", "+activate");
self waittill ("F");
// Do stuff
[/php]
dont know wy but i cant find the sulution...
Code:CreateAsc(depart, arivee, angle, time) { Asc = spawn("script_model", depart ); Asc setModel("com_plasticcase_friendly"); Asc.angles = angle; Asc Solid(); Asc CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); Asc thread Escalator(depart, arivee, time); } Escalator(depart, arivee, time) { while(1) { if(self.state == "open"){ self MoveTo(depart, time); wait (time*1.5); self.state = "close"; continue; } if(self.state == "close"){ self MoveTo(arivee, time); wait (time*1.5); self.state = "open"; continue; } } }
i want it on a command like [{+activate}] how??
= thanks
Bring a Ding Ding Baby!
[php]
self notifyonplayercommand ("F", "+activate");
self waittill ("F");
// Do stuff
[/php]
--
"Life is tough. It's tougher if you're stupid."
Spiritwo |
im lazy atm xD i tried that but where to be placed i did it
under the loop.. but dind work
i did this
Code:nukelift(depart, arivee, angle, time) { Asc = spawn("script_model", depart ); Asc setModel("com_plasticcase_enemy"); Asc.angles = angle; Asc Solid(); Asc CloneBrushmodelToScriptmodel( level.airDropCrateCollision ); Asc thread Escalatore(depart, arivee, time); } Escalatore(depart, arivee, time) { self notifyonplayercommand ("E", "+activate"); for(;;) { self waittill ("E"); if(self.state == "open"){ self MoveTo(depart, time); wait (time*1.5); self.state = "close"; continue; } if(self.state == "close"){ self MoveTo(arivee, time); wait (time*1.5); self.state = "open"; continue; } } }
Last edited by TheSaboteur; 11-06-2010 at 08:18 AM.
Bring a Ding Ding Baby!