Jump to content
Sign in to follow this  
Rejn

rejn

Recommended Posts

I have a couple of spawn scripts etc.. just a quick question.. is it better to have units spawn at say (position _positionname) or at say (getpos _positionname)

I use gamelogics for positions.

I have one game logic called ven1 for example and when i want spawn places to change mid mission I have a trigger for ven1=another game logic name

can this cause problems in any way?

Thanks.

Share this post


Link to post
Share on other sites

I dont know about anyone else but I always use the "setpos" command for that.

Share this post


Link to post
Share on other sites

They are both exactly the same. No idea why we have them both.

Share this post


Link to post
Share on other sites
They are both exactly the same. No idea why we have them both.

getPos is the older version, position was introduced later. No idea why. There also used to be setDammage and setDamage was introduced later (setDammage being a typo). Both have the same function though.

It's not uncommon for there to be several different commands with the same function in a programming language. It's called an alias.

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  

×