Jump to content
Sign in to follow this  
iwantfun

How do u change the spawn degree of a building spawned from a script

Recommended Posts

_castlegate = createVehicle ["Land_A_Castle_Gate", position Castlegate, [], 0, "NONE"];

Share this post


Link to post
Share on other sites

Questions:

  1. What is "Castlegate" and why do you get the position of it? If this is a gamelogic, why not replacing it wholly with this command or a marker? O_O
  2. What do you mean with "degree"? Is this some sort of translation quirk or did you really mean the direction the building should face?
    • If you meant the direction, use BoltboxerPro's suggestion, but put an underscore at the very beginning, otherwise it won't work.

Share this post


Link to post
Share on other sites

_castlegate = createVehicle ["Land_A_Castle_Gate", position Castlegate, [], 0, "NONE"];

_castlegate setDir 120; //your direction

_castlegate setPos (getPos _castlegate);

Use setPos after you used setDir to sync.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×