Jump to content

Home

emplaced_guns?


Lehik

Recommended Posts

Originally posted by buckman

im guessing maby you can target a stormtropper to a emplaced gun, or target the gun at the stormtrooper. I havnt tried it myself so im not sure that this will work. Try it and see what happens

 

-Buck out :deathii:

 

 

I tried both ways you mentioned but they didn't work.

Link to comment
Share on other sites

hmm havent tried the setviewentity with npcs...could get weird.

 

However when you do it with the player kyle stays in the game.

remember the droid controls from the missions by Raven?

 

So at best you would end up with a stormie standing next to a gun that seemed to be working on its own. At least that is what i would expect.

Link to comment
Share on other sites

Well its done with a simple script(I assume you know how to assign spawnscripts to NPCs)

 

The script should contain only this line:

 

use ( $get(STRING,"SET_PARM1")$ );

 

And set the NPC parm1 to the targetname of the emplaced gun. Now when the NPC spawns it will use the gun. Also you can add to the script this(it is not nesserary but it can help,make sure u edit some parts).

 

set ( /*@SET_TYPES*/ "SET_VISRANGE", 4000 );

set ( /*@SET_TYPES*/ "SET_WATCHTARGET", "emplaced_aim" );

set ( /*@SET_TYPES*/ "SET_AIM", 5 );

set ( /*@SET_TYPES*/ "SET_SHOT_SPACING", 300 );

 

I hope this helped.

 

Originally posted by Bell

would a script for the stormtrooper work as in;

 

//Generated by BehavEd

 

rem ( "usegun" );

 

affect ( "stormtrooper", /*@AFFECT_TYPE*/ FLUSH )

{

set ( "SET_VIEWENTITY", "gun" );

 

 

 

or something . . .

 

This will just make the NPC just look at the gun. You need the use command in order to get him use it. You can that script later on though to make the NPC look at specific direction when using the gun.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...