mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 06:07:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
14
trunk/scripts/prgt_spawneg.nss
Normal file
14
trunk/scripts/prgt_spawneg.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
//An example OnHB script for an invisible placeable to spawn a ground trap
|
||||
#include "prc_alterations"
|
||||
#include "prgt_inc"
|
||||
void main()
|
||||
{
|
||||
struct trap tTrap;
|
||||
//this will use 5 as the CR for the trap
|
||||
tTrap = CreateRandomTrap(5);
|
||||
//add code in here to change things if you want to
|
||||
//for example, to set the detect DC to be 25 use:
|
||||
//tTrap.nDetectDC = 25;
|
||||
PRGT_CreateTrapAtLocation(GetLocation(OBJECT_SELF), tTrap);
|
||||
DestroyObject(OBJECT_SELF);
|
||||
}
|
||||
Reference in New Issue
Block a user