Forum Jump :

Author Message


Posts: 4
Rank:


Level: Member

Country: uk
Location: United Kingdom
Occupation: Creator of RGO
Age:
In-game name:

 
#1 Posted at 2013-02-22 23:18        
     
I am trying to make random missions that are chosen on mission start.

Currently the script is executed via radio trigger for testing.

Script:
_rand = ["sm1","sm2","sm3"];
_loc = _rand select (floor(random(count _rand)));
"vip" setpos (getmarkerpos _loc);

hint "Moved";

Currently it is not working. I essentially want the side mission design from Domination West.


Author Message


Posts: 48
Rank:


Level: Member

Country: fr
Location:
Occupation:
Age:
In-game name:

 
#2 Posted at 2013-02-22 23:55        
     
I think that setPos expects an object whereas "vip" is a string.

Besides, use squint and -showScriptErrors (as a launch option) for debug purposes (if not already done).

edit : I think this should go to editing/scripting forum btw :)


Advertisement


Author Message


Posts: 20280
Rank:


Level: Super Admin

Country: nl
Location: The Netherlands
Occupation:
Age: 41
In-game name: Foxhound

 
#3 Posted at 2013-02-23 08:45        
     
Why do you insist on asking mission editing questions in the addons/mods discussion forum. Really, believe me, it is not the proper section.
Mission editing questions belong in the mission editing section. I really thought that was kind of logic. Topic moved.

Visit my family webshop desteigerhoutshop.nl.