OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: illmatic on 25 Apr 2004, 21:06:09
-
_num = 5
_count = 0
#script
;my script goes here
hint "1"
~1
_count = _count + 1
?(_count == _num):goto "stop"
exit
#stop
hint "error, you can only activate this 5 times!"
--------
ok problem is....... i dont want the script to exit, nor do i want it to reppeat from #script, i need to sorta make it stop dead and wait until the user requests the script again, then it can go to #script and run down again. any ideas???
-
_num = 5
_count = 0
#script
;my script goes here
hint "1"
~1
_count = _count + 1
?(_count == _num):goto "stop"
boolean = false
@ boolean
#stop
hint "error, you can only activate this 5 times!"
When the player turns the boolean to true it will continue untill the does it again.
:beat: *Gets Shot* :beat:
-
thx m8