- Added HotWax's A_SetArg.
SVN r1721 (trunk)
This commit is contained in:
parent
b1b258ec55
commit
9a16e4b6ea
3 changed files with 30 additions and 1 deletions
|
|
@ -2749,3 +2749,22 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_ChangeVelocity)
|
|||
CheckStopped(self);
|
||||
}
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// A_SetArg
|
||||
//
|
||||
//===========================================================================
|
||||
|
||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetArg)
|
||||
{
|
||||
ACTION_PARAM_START(2);
|
||||
ACTION_PARAM_INT(pos, 0);
|
||||
ACTION_PARAM_INT(value, 1);
|
||||
|
||||
// Set the value of the specified arg
|
||||
if ((size_t)pos < countof(self->args))
|
||||
{
|
||||
self->args[pos] = value;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue