Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Lock Object On.....Eh???

Author
Message
Omicron
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location:
Posted: 13th Jun 2006 21:40
i am trying to figure out how to get guns to stay in place (like an fps) and saw this command in the tutorial and other codebase entries. when i go to use the command the gun disappears, this is my code:
load object "MP5.X",4 (<-- MP5 from Dark matter)
load image "MP5.DDS",1
texture object 4,1
lock object on 4
position object 4,50,3.85,0.5
disable object zdepth 4
any assistance would be greatly appreciated
Omicron
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location:
Posted: 13th Jun 2006 22:32
im using dark basic professional btw
Virtual Nomad
Moderator
18
Years of Service
Recently Online
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 13th Jun 2006 22:42 Edited at: 13th Jun 2006 22:50
i'm not sure why (haven't really looked at the object itself) but the scale on it is messed up bad.

add scale object 4,50000,50000,50000 somewhere. worked for me:



Virtual Nomad
Athlon XP1800+, Windows XP+SP2, Soyo K7V Dragon+ MB, 1.5Gb 333 RAM, ATI Radeon 8700LT (128Mb)

Attachments

Login to view attachments
Omicron
18
Years of Service
User Offline
Joined: 13th Jun 2006
Location:
Posted: 14th Jun 2006 20:00
WOW, i tried it in my code and it works!!! thanks sooooooo much for your help

Login to post a reply

Server time is: 2024-11-27 17:46:03
Your offset time is: 2024-11-27 17:46:03