| Author | Sticky: Post Working Scripts Here |
| Elhimac | Posted: Sunday, 21 July 12:12PM |
| 1. Script name: Children Playing Tag 1.1 2. What it does: A little update to Ralf Schemmann's excellent script for tag playing children. With the additions of a couple of waypoints and a bit of extra code it ensures that the children stays within a defined area and don't run off into the woods. 3. Notes: First create the children that you want to be playing tag and set their Tag's to TAGCHILD. Then, in the OnSpawn script you need to make sure that the SetSpawnInCondition (NW_FLAG_HEARTBEAT_EVENT); line is uncommented. You also need to place an extra line just below that says SetLocalInt(OBJECT_SELF, "nChasing", 0); for the children that you want to start as being chased, and SetLocalInt(OBJECT_SELF, "nChasing", 1); for the one child that you want to start out as the chaser. You then need to place 5 waypoints, one that has the tag KidTagCenter, and the other four that have the tags TagArea0, TagArea1, TagArea2 and TagArea3. The following script then goes into the OnUserDefined for all of the children. NOTE: I've uncommented the lines regarding the haste effect that the chaser would apply to himself because I had problems getting it removed once it was in place, I've included it as a comment out of completness. If you want to use it then you might also want to have a line with in the OnSpawn spript that applies the haste effect to the predefined chaser. 4. The Script:
|
|