global_tripwire.scr

Dependencies

#include "maps/global_scripts/global_common.scr"

Purpose

Creates a tripwire that moves back and forth along a path.

How To Use

The full explaination of how to setup a tripwire is written up in "Setting Up Tripwires".

External Functions

globalTripwire_Setup( basename, thespeed )

Purpose:
To setup and bind together all the objects that make up a tripwire object

    Parms:
  • basename (string)
    The unique targetname indentifier used on the source object.

  • thespeed (float)
    The speed with which the tripwire will follow it's path.

globalTripwire_Run( basename )

Purpose:
If you desire the tripwire to follow a path comprised of info_notnull's, use this function to start it going along the path.

    Parms:
  • basename (string)
    The unique targetname indentifier used on the source object.

globalTripwire_Halt( basename )

Purpose:
If you have a tripwire that is following a path comprised of info_notnull's, use this function to stop it moving along the path. NOTE: you still have to handle the trigger_hurt and the beam once you stop it (either remove them, or make them both hidden and not-solid).

    Parms:
  • basename (string)
    The unique targetname indentifier used on the source object.