Code to remove the first person weapon
by Bernard Cheng · in Torque Game Engine · 07/26/2004 (10:50 am) · 5 replies
Hi guys,
Got a quick question. How do you go about removing the weapon entirely from the first person view? This includes the firing option, so if I left clicked the mouse while in playing mode, nothing will happen.
Thanks,
Bernard
Got a quick question. How do you go about removing the weapon entirely from the first person view? This includes the firing option, so if I left clicked the mouse while in playing mode, nothing will happen.
Thanks,
Bernard
#2
07/26/2004 (4:52 pm)
Where do I go abouts to to that?
#3
1) open "game.cs" in notepad from "C:\torque\example\starter.fps\server\scripts"
2) search for:
5) remove all weapons from your mission
edit : oopss little change...again
07/26/2004 (6:43 pm)
Maybe this help you...1) open "game.cs" in notepad from "C:\torque\example\starter.fps\server\scripts"
2) search for:
// Starting equipment %player.setInventory(Crossbow,1); %player.setInventory(CrossbowAmmo,10); %player.mountImage(CrossbowImage,0);3) remove or add Comments
// Starting equipment // %player.setInventory(Crossbow,1); // %player.setInventory(CrossbowAmmo,10); // %player.mountImage(CrossbowImage,0);4) save "game.cs" and delete "game.cs.dso"
5) remove all weapons from your mission
-Start Mission -> Stronghold -in game press F11 -> F3 to enter in World mision inspector -expand the right browser (clic [+]) -select and delete ####: Crossbows - SimGroup. -Finally save your mission in File->Save Mission As->NoWeapons.misNo more weapons in your game...And sorry for my bad english... :)
edit : oopss little change...again
#4
07/26/2004 (6:54 pm)
Damn "Kork" have one weapon... Lol
#5
07/26/2004 (7:05 pm)
Thanks a lot for your help guys :)
Associate Kyle Carter