Jump to content

Home

Wanting to write a particular script-need help!!!


Forceboat

Recommended Posts

I want to write a particular script to use for a few single player maps, to give my Kyle replacement characters a different weapon. Right now, they load up with the player having a Bryar Pistol. I want to change that by writing a script that has the level start up with a lightsaber. Please! I need help! What are the variables that I need to write for this script so it does this? Please, help!

Link to comment
Share on other sites

razorace,

 

I'm sorry, but I still don't get it. Okay, you said change something in the script so that "Kyle" starts with the saber. Well, it must be an entity thing in the map itself, because it is an addon map I downloaded, and it had no scripts; it starts out with the player having only the Bryar Pistol- hence my wanting to write myself a script so I can change that to him starting with the saber instead. Here's what I wrote in it. Tell me what I missed so that it will work. Here's the text version of it before I converted it to IBI:

 

//Generated by BehavEd

 

rem ( "comment" );

 

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

{

set ( "WEAPON", "WP_SABER" );

}

Link to comment
Share on other sites

It has to be an ICARUS script. It's not possible any other way according to the source code. My guess is that the file is just in compiled form in the map's .pk3.

 

Secondly, it should be "player" instead of "kyle".

 

Finally, you gotta have this new script replace the current scripted used to replace the weapons (which is triggered on player spawn). My guess is that it's going to be in the scripts directory of the pk3 and probably be called something like playerspawn.ibi.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...