Hello everyone, As I got deeper into SQF scripting I thinked il try out to make something more with addAction, and I seem to fail with making a marker to appear on location where addAction has been used.
For example I made stash that spawns in random places and when you find it you can come to it and do addAction (locate) which will make a marker on map so everyone could see on the map but I seem to fail,
here is what SQF looks like, please ignore everything else I made in the script but note me what I did wrong, Thank you for your time.
Code:_actHad = _this select 0; _actUsed = _this select 1; _actID = _this select 2; _myXpos = (getPos _actUsed) select 3; _myYpos = (getPos _actUsed) select 4; _actHad removeaction _actID; _actUsed sidechat "I found the stash!"; titleText ["Stash has been found!","PLAIN DOWN"]; _markerstr = createMarker["stashHere",[_Xpos,_Ypos]]; _markerstr setMarkerShape "ICON"; "stashHere" setMarkerType "DOT";
HOME
Reply With Quote
