Welcome to the Creatures Wiki! Log in and join the community.
GPAS
Jump to navigation
Jump to search
GPAS is a CAOS command to do with lifts.
Syntax[edit]
GPAS (command) family (integer) genus (integer) species (integer) rect_to_use (integer)
Collect all nearby agents matching the classifier as passengers.
rect_to_use 0 : Nearby means touching bounding rectangle of agent
rect_to_use 1 : Nearby means touching cabin rectangle
Example[edit]
From the new lift script, in the 'elevator go up' script, if the hand sent the message to the lift to go up, the lift will scoop up all creatures touching the lift's bounding box.
*Determine who sent the message doif _p1_ = pntr *Check for grendels etch 4 2 0 nohh zomb 1 pose 80 dirn 1 doif targ <> null spas ownr targ endi wait 2 doif targ <> null doif carr = null zomb 0 endi endi next *Get everyone in the lift gpas 4 0 0 1