OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Trajectory7 on 04 Nov 2002, 23:31:40
-
what's wrong with this?
-------------------------------
_marker = _this select 0
getpos _marker = _place
_x = _place select 0
_y = _place select 1
bang = "flare" camcreate [_x, _y, 100]
exit
-----------------------------------
I done it before but can't remember what i'm doing wrong.
-
Is _marker an actual marker?
If it is remember that marker names need to be in string format (ie you would call the script using ["markername"] exec "script.sqs"). You also have the definition the wrong way around - it should read
_place = getmarkerpos _marker
(you also need to change getpos to getmarkerpos).
:)
-
_marker isn't an actual marker but i try correcting the order of the other bit.
thanks