Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
16
_module/nss/tri_crtaluserdef.nss
Normal file
16
_module/nss/tri_crtaluserdef.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
void main()
|
||||
{
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 400)
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, "tri_crsActive", 1);
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
|
||||
}
|
||||
if(nUser == 401)
|
||||
{
|
||||
SetLocalInt(OBJECT_SELF, "tri_crsActive", 0);
|
||||
ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user