create a sub-base defence? [message #235526] |
Fri, 22 December 2006 21:22 |
|
jnz
Messages: 3396 Registered: July 2006 Location: 30th century
Karma: 0
|
General (3 Stars) |
|
|
im sorry for all the questions (don't worry, it will pay off)
i need to know (script wise) how to create a sub base defence that operates for the team. like for nod you get the turrets.
i have seen this on some server and would like to know how to do it myself, i want the turret/gaurd tower to drop where the player is standing. i just need to know how ot do it. i assume it would be
GameObject *Create_Building(const char *preset,const Vector3 & Position);
but thats all i know.
|
|
|
|
|
|
|
|
|
Re: create a sub-base defence? [message #235581 is a reply to message #235526] |
Sat, 23 December 2006 10:36 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
use getPos on the gameobject your starting from, adjust the xyz coordinates on the Vector3 you get back, and then use that as your spawning point.
(its either getPos or getPosition, can't remember exactly which, but it returns a Vector3)
|
|
|