Really nooby question

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Really nooby question

Post by F |Madness| U » June 25th, 2011, 2:58 pm

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.
-

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13313
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: Really nooby question

Post by Drofder2004 » June 25th, 2011, 3:13 pm

model.origin = player.origin - (0,0,100);

---

Your code is fine at first glance.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: Really nooby question

Post by F |Madness| U » June 25th, 2011, 3:15 pm

Ahh too much editing of posts, thanks haha, i'll try it later.
-

F |Madness| U
CJ G0D!
CJ G0D!
Posts: 1575
Joined: June 3rd, 2009, 9:02 pm
Location: Cardiff University, UK

Re: Really nooby question

Post by F |Madness| U » June 25th, 2011, 5:35 pm

Also, is it possible to export a model from CoD4, into Black Ops, and then spawn that model using a mod?
-

User avatar
Opel
CJ Fan
CJ Fan
Posts: 188
Joined: September 15th, 2008, 12:28 pm
Location: Scotland

Re: Really nooby question

Post by Opel » June 25th, 2011, 5:51 pm

Yes more than likely now that the mod tools have been released. You will need maya 2009 for importing into black ops though

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests