OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: ofp..hahha on 11 Sep 2002, 01:23:50

Title: Setmarkerpos to my object position
Post by: ofp..hahha on 11 Sep 2002, 01:23:50
ok guys i have been beeing dumb lately and cant figure out how to make a marker just get the position of and object heres all i want

marker1 setpos getpos myobjectname
Title: Re:Setmarkerpos to my object position
Post by: icarus_uk on 11 Sep 2002, 01:24:37
Oddly enough, marker names have to be "" arouns them.

"marker1" setpos getpos myobjectname

Is what you are looking for.
Title: Re:Setmarkerpos to my object position and Camcreate In Multilplayer
Post by: ofp..hahha on 11 Sep 2002, 03:49:34
and no for some reason icarus it just doesnt want to get the position of the object
Title: Re:Setmarkerpos to my object position and Camcreate In Multilplayer
Post by: icarus_uk on 11 Sep 2002, 04:03:01
Thats because the correct command is SetMarkerPos to move a marker.
Title: Re:Setmarkerpos to my object position and Camcreate In Multilplayer
Post by: ofp..hahha on 11 Sep 2002, 04:29:30
Well thats what i used
Title: Re:Setmarkerpos to my object position and Camcreate In Multilplayer
Post by: icarus_uk on 11 Sep 2002, 12:21:37
You used;

"marker1" setmarkerpos (getpos myobjectname)

?

Assuming you have an object named myobjectname and a marker named marker1, then it will work.
Title: Re:Setmarkerpos to my object position
Post by: Black_Feather on 12 Sep 2002, 02:48:01
do you mean this?

_Coords = GetMarkerPos "Marker1"
Title: Re:Setmarkerpos to my object position
Post by: ofp..hahha on 12 Sep 2002, 03:39:54
I got it man