Arrow[SOLVED]Howto spawn functioning miniguns (turrets)

Posts 1–5 of 5 · Page 1 of 1
[SOLVED]Howto spawn functioning miniguns (turrets)
I was tryining to spawn some turrets but couldnt get them working besides visually. There is no function like press f available to occupie the turret and shoot with it.
I used following code:

turret1 = spawn("script_model", (2740, 1130, 320) );
turret1 setModel( "weapon_minigun" );
turret1.angles = (0, 180, 0);

what did i do wrong ?
Spawn turret and name list
Im wondering to do a new mod but i need to know how to find object's names like i know the carepact :

carepack1 = spawn("script_model", (2850, 164, 165) );
carepack1 setModel( "com_plasticcase_friendly" );
carepack1 Solid();
carepack1 CloneBrushmodelToScriptmodel( level.airDropCrateCollision );

can someone leave a list of script model like that?

and im wondering to know how to put a turret that when u press F you can take the turret.

Thnaks for helping me
Quote Originally Posted by kerocs View Post
I was tryining to spawn some turrets but couldnt get them working besides visually. There is no function like press f available to occupie the turret and shoot with it.
I used following code:

turret1 = spawn("script_model", (2740, 1130, 320) );
turret1 setModel( "weapon_minigun" );
turret1.angles = (0, 180, 0);

what did i do wrong ?
All you are doing is spawning the model, not the turret itself.

Quote Originally Posted by koliter View Post
Im wondering to do a new mod but i need to know how to find object's names like i know the carepact :

carepack1 = spawn("script_model", (2850, 164, 165) );
carepack1 setModel( "com_plasticcase_friendly" );
carepack1 Solid();
carepack1 CloneBrushmodelToScriptmodel( level.airDropCrateCollision );

can someone leave a list of script model like that?

and im wondering to know how to put a turret that when u press F you can take the turret.

Thnaks for helping me
Next time make your own thread.
But to answer your first question:
Code:
"vehicle_b2_bomber"
"vehicle_av8b_harrier_jet_mp"
"vehicle_av8b_harrier_jet_opfor_mp"
"vehicle_mig29_desert"
"tag_origin"
"projectile_cbu97_clusterbomb"
"c130_zoomrig"
"vehicle_uav_static_mp"
"vehicle_little_bird_minigun_right"
"sentry_minigun"
"weapon_minigun"
"vehicle_m1a1_abrams_d_static"
"vehicle_ac130_coop"
"com_plasticcase_friendly"
"com_plasticcase_enemy"
"vehicle_little_bird_armed"
"vehicle_ac130_low_mp"
"sentry_minigun_folded"
And your second is the same:
All you are doing is spawning the model, not the turret itself.

Quote Originally Posted by GrenadeLaunchers View Post
All you are doing is spawning the model, not the turret itself.



Next time make your own thread.
But to answer your first question:
Code:
"vehicle_b2_bomber"
"vehicle_av8b_harrier_jet_mp"
"vehicle_av8b_harrier_jet_opfor_mp"
"vehicle_mig29_desert"
"tag_origin"
"projectile_cbu97_clusterbomb"
"c130_zoomrig"
"vehicle_uav_static_mp"
"vehicle_little_bird_minigun_right"
"sentry_minigun"
"weapon_minigun"
"vehicle_m1a1_abrams_d_static"
"vehicle_ac130_coop"
"com_plasticcase_friendly"
"com_plasticcase_enemy"
"vehicle_little_bird_armed"
"vehicle_ac130_low_mp"
"sentry_minigun_folded"
And your second is the same:
All you are doing is spawning the model, not the turret itself.
Wow i'm dumb, didn't see how old that one thread was.
Fast answer guys..
Quote Originally Posted by B4M View Post
Fast answer guys..
What?
I didn't know the thread was old when I posted...
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us