17 lines
345 B
Plaintext
17 lines
345 B
Plaintext
|
|
||
|
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);
|
||
|
}
|
||
|
}
|