OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tyger on 09 Feb 2004, 02:18:29
-
wev got GTA I, GTA II, GTA III, GTA Vice City, and now wev got GTA: Everon
at least, if i can get sum :help: on this prob
im tryin 2 create a trigg that gives you x ammount of moolah when you boost a car. ( i didn't want to use a script because it would have 2 run the whole mission, and cause a bunch o lag
anyone know how 2 use either? if its good, i just might use a script
does it hav 2 du with if (player in _x), then myCash = myCash + 100?
thanx && cheers
Tyger
-
Creating one small script that runs the entire mission wouldn't cause that much lag. Just create a script, call it "money.sqs" and in it, put
money = 0
Then create a trigger covering the entire map, activated by anyone and is set to repeat.
Then in its on activation box, type
[] exec "money.sqs"
To add money when you boost a car, just create a trigger and in its Condition field, type
vehicle player != player
then type in its On activations field
money = money + 100
Remember to set the trigger to repeating ;)
-
If a script is running throughout the whole mission then it must be on a loop: whether it will cause any lag then largely depends on the speed of the loop. If the delay is say two seconds
~2
then it won't cause any lag.
-
good! ill just add a loop 2 it, an ill have a good start on my illegal copy of GTA ;D
Cheers :cheers:
Tyger