Jump to content

Home

scripts


Super J

Recommended Posts

put it in your gamedata/base/scripts directory

 

say you've made a spawnscript for a NPC and called it spawndude.ibi - after you select the NPC and hit N, make the key spawnscript and the value spawndude - if it was in scripts/whatever, you'd put whatever/spawndude.

Link to comment
Share on other sites

A spawnscript is a .ibi that runs on an entity when it is spawned. For example, every singleplayer level has a spawnscript key attached to the info_player_start entity that gives force powers, etc. to the player. Ex: it can be used with a stormtrooper entity, so that when you cross a trigger it spawns the stormtrooper and starts it on a patrol route.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...