OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Trajectory7 on 04 Nov 2002, 23:31:40

Title: Quick question: what's wrong with this
Post 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.
Title: Re:Quick question: what's wrong with this
Post by: Bremmer on 05 Nov 2002, 00:27:44
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).

 :)
Title: Re:Quick question: what's wrong with this
Post by: Trajectory7 on 05 Nov 2002, 00:41:14
_marker isn't an actual marker but i try correcting the order of the other bit.

thanks