'origin' Argument
Posted: Mon Oct 03, 2011 5:00 pm
Affects: Commands
Summary: Spawn npc's, effects, teleport, and set spawnpoints based on relative player position.
Suggestion: Add an 'origin' argument to npc, rpeffect, rptele, and rpspawnpoint so that, instead having to pre-determine spawn coordinates, commands are executed on XYZYAW location based off of the players current position. By inputting 20 -30 0, the command would go off at the players position, plus twenty units on the X axis, minus thirty units on the Y axis, and on the exact same Z axis. By leaving the YAW field blank it could, by default, take the players yaw and add/subtract 180 to rotate and face the player.
Implementation: /npc spawn [origin] [vehicle] <type> [targetname] [team] [model] [X Y Z YAW]
'origin' argument takes players current position and adds the values given.
References: RPMod documentation.
Summary: Spawn npc's, effects, teleport, and set spawnpoints based on relative player position.
Suggestion: Add an 'origin' argument to npc, rpeffect, rptele, and rpspawnpoint so that, instead having to pre-determine spawn coordinates, commands are executed on XYZYAW location based off of the players current position. By inputting 20 -30 0, the command would go off at the players position, plus twenty units on the X axis, minus thirty units on the Y axis, and on the exact same Z axis. By leaving the YAW field blank it could, by default, take the players yaw and add/subtract 180 to rotate and face the player.
Implementation: /npc spawn [origin] [vehicle] <type> [targetname] [team] [model] [X Y Z YAW]
'origin' argument takes players current position and adds the values given.
References: RPMod documentation.