Page 1 of 1
MG 42 .scr script
Posted: Sat Feb 14, 2004 1:22 am
by jordanw23
Could someone please write me up a script for an MG42 that can be fired and used and can be put into a .scr.....I know how to put s in just not how to add attributes and stuff...
Posted: Sat Feb 14, 2004 7:50 am
by jv_map
See Game Objects Usage Doc.doc that ships with mohradiant

Posted: Sat Feb 14, 2004 3:53 pm
by jordanw23
can't get it to work, could someone please correct my script, this will be going in a .scr
mg42working:
local.static = spawn script_model
local.static model "statweapons/mg42_gun.tik"
local.static.origin = ( -2586.90 851.93 74.40)//5 -2215 55
local.static.angles = ( 0 0 0)
local.static solid
setPlayerUsable 1
firetype bullet
end
Posted: Sat Feb 14, 2004 6:58 pm
by jv_map
setPlayerUsable 1
firetype bullet
Why not put local.static in front?
Posted: Sun Feb 15, 2004 3:38 am
by jordanw23
....sry im a n00b.

Thank you sir

Posted: Mon Feb 16, 2004 3:29 am
by jordanw23
I am completely confuzzled on this one...when the script is added as usuable it makes all my other spawned models disappear including the usable one im trying to spawn....???could someone please point me in the right direction

Posted: Mon Feb 16, 2004 4:56 pm
by jv_map
Well then get rid of the setplayerusable line... all mg-42s are usuable by default anyway.
Posted: Mon Feb 16, 2004 5:27 pm
by jordanw23
ok but do I have the right model....
Posted: Mon Feb 16, 2004 5:32 pm
by jv_map
Yes but you spawned it as a script_model and script_models can't be fired.
Instead, spawn it a little different.
local.static = spawn script_model
local.static model "statweapons/mg42_gun.tik"
should be:
local.static = spawn "statweapons/mg42_gun.tik"
Then all should be fine

Posted: Mon Feb 16, 2004 9:30 pm
by Franko74
Hi, jordanw23
if u have this problem yet just see this example:
http://212.92.14.2/feco/mg42.zip
u can use it to both sides (allies and axis too)
have a nice work:
F74
Posted: Tue Feb 17, 2004 1:34 am
by jordanw23
thank you sir
