Page 1 of 1

Really nooby question

Posted: June 25th, 2011, 2:58 pm
by F |Madness| U
How can I get the position of something, say 100 units below the person in Z direction, and then get it to move up to the original position? I made some code, but I can't check it at the moment, and just wondering if it seems right.

Code: Select all

place = self.origin - (0, 0, 100);
 
model = spawn( "script_model", place );
model setModel("randommodel");
model moveZ(100, 2, 0.1, 0.1);
 
Thanks.

Re: Really nooby question

Posted: June 25th, 2011, 3:13 pm
by Drofder2004
model.origin = player.origin - (0,0,100);

---

Your code is fine at first glance.

Re: Really nooby question

Posted: June 25th, 2011, 3:15 pm
by F |Madness| U
Ahh too much editing of posts, thanks haha, i'll try it later.

Re: Really nooby question

Posted: June 25th, 2011, 5:35 pm
by F |Madness| U
Also, is it possible to export a model from CoD4, into Black Ops, and then spawn that model using a mod?

Re: Really nooby question

Posted: June 25th, 2011, 5:51 pm
by Opel
Yes more than likely now that the mod tools have been released. You will need maya 2009 for importing into black ops though