Initial upload
Initial upload
This commit is contained in:
17
_module/nss/ac_autofollow.nss
Normal file
17
_module/nss/ac_autofollow.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
// Check if we have the correct event firing the script
|
||||
if (GetUserDefinedItemEventNumber() != X2_ITEM_EVENT_ACTIVATE) return;
|
||||
|
||||
|
||||
//Put body of script here
|
||||
|
||||
object oItem=GetItemActivated();
|
||||
object oActivator=GetItemActivator();
|
||||
object oPlayer = GetItemActivator();
|
||||
object target = GetItemActivatedTarget();
|
||||
|
||||
DelayCommand(0.2, AssignCommand(oActivator, ActionForceFollowObject(target, 3.0)));
|
||||
|
||||
}
|
Reference in New Issue
Block a user