Home   Help Search Login Register  

Author Topic: Quick question: what's wrong with this  (Read 779 times)

0 Members and 1 Guest are viewing this topic.

Trajectory7

  • Guest
Quick question: what's wrong with this
« 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.

Bremmer

  • Guest
Re:Quick question: what's wrong with this
« Reply #1 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).

 :)

Trajectory7

  • Guest
Re:Quick question: what's wrong with this
« Reply #2 on: 05 Nov 2002, 00:41:14 »
_marker isn't an actual marker but i try correcting the order of the other bit.

thanks