Editing ACS built-in functions
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 15: | Line 15: | ||
*[[PlayActorSound]] | *[[PlayActorSound]] | ||
*[[PlaySound]] | *[[PlaySound]] | ||
* | *void SectorSound(str sound, int volume); | ||
*[[ | *void SetMusic (str song [, int order [, int unused]]) | ||
*[[ | *void LocalSetMusic (str song [, int order [, int unused]]) | ||
* | *void SoundSequence (str sndseq); | ||
*[[SoundSequenceOnActor]] | *[[SoundSequenceOnActor]] | ||
* | *void StopSound (int tid, int channel); | ||
* | *void ThingSound (int tid, str sound, int volume); | ||
===Sectors=== | ===Sectors=== | ||
*void ChangeCeiling(int tag, str flatname) | |||
:Changes the ceiling texture of tagged sectors to flatname. | |||
*void ChangeFloor(int tag, str flatname) | |||
:Changes the floor texture of tagged sectors to flatname. | |||
*fixed GetSectorCeilingZ (int tag, int x, int y) | |||
:Gets sector ceiling height. Currently x and y are reserved for the time Eternity gets working slope physics. | |||
*fixed GetSectorFloorZ (int tag, int x, int y) | |||
:Gets sector floor height. Currently x and y are reserved for the time Eternity gets working slope physics. | |||
*int GetSectorLightLevel (int tag) | |||
===Things=== | ===Things=== | ||
*[[CheckProximity]] | *[[CheckProximity]] | ||
*bool CheckSight(int source, int dest, int flags) | *bool CheckSight(int source, int dest, int flags) | ||
:Returns true if there's a line of sight between at least one thing tagged as source and one thing tagged as dest. Currently flags is reserved and must be 0. | :Returns true if there's a line of sight between at least one thing tagged as source and one thing tagged as dest. Currently flags is reserved and must be 0. | ||
*int [[ | *bool CheckFlag(int tid, str flag) | ||
:Returns true if the first thing with the given tid has the given flag enabled. | |||
*[[CheckActorClass]] | |||
*[[CheckActorProperty]] | |||
*int ClassifyActor(int tid) | |||
:Checks the kind of thing tagged tid. It returns a set of flags, possibly combined: | :Checks the kind of thing tagged tid. It returns a set of flags, possibly combined: | ||
:*ACTOR_PLAYER (2): it's player-controlled | :*ACTOR_PLAYER (2): it's player-controlled | ||
Line 69: | Line 52: | ||
:*ACTOR_NONE (0): no thing found with this TID | :*ACTOR_NONE (0): no thing found with this TID | ||
:*ACTOR_WORLD (1): TID is 0 but activator isn't a thing | :*ACTOR_WORLD (1): TID is 0 but activator isn't a thing | ||
*[[GetActorProperty]] | *[[GetActorProperty]] | ||
*[[GetActorVelX]] | *[[GetActorVelX]] | ||
*[[GetActorVelY]] | *[[GetActorVelY]] | ||
*[[GetActorVelZ]] | *[[GetActorVelZ]] | ||
*[[IsTIDUsed]] | *[[IsTIDUsed]] | ||
*void SectorDamage (int tag, int amount, str type, str protection_item, int flags) | |||
*[[SetActivator]] | *[[SetActivator]] | ||
*[[SetActivatorToTarget]] | *[[SetActivatorToTarget]] | ||
Line 87: | Line 63: | ||
*[[SetActorVelocity]] | *[[SetActorVelocity]] | ||
*void SetActorPitch (int tid, int pitch) | *void SetActorPitch (int tid, int pitch) | ||
* | *bool SetActorPosition (int tid, fixed x, fixed y, fixed z, bool fog) | ||
*void SetThingSpecial (int tid, int special [, int arg0 [, int arg1 [, int arg2 [, int arg3 [, int arg4]]]]]) | *void SetThingSpecial (int tid, int special [, int arg0 [, int arg1 [, int arg2 [, int arg3 [, int arg4]]]]]) | ||
*int SetActorState(int tid, str statename[, bool exact]); | *int SetActorState(int tid, str statename[, bool exact]); | ||
Line 94: | Line 70: | ||
*int SpawnForced (str classname, fixed x, fixed y, fixed z [, int tid [, int angle]]) | *int SpawnForced (str classname, fixed x, fixed y, fixed z [, int tid [, int angle]]) | ||
*[[SpawnProjectile]] | *[[SpawnProjectile]] | ||
*[[ | *int SpawnSpot (str classname, int spottid [, int tid [, int angle]]) | ||
*int SpawnSpotFacing (str classname, int spottid [, int tid]) | *int SpawnSpotFacing (str classname, int spottid [, int tid]) | ||
*[[SpawnSpotFacingForced]] | *[[SpawnSpotFacingForced]] | ||
Line 105: | Line 81: | ||
*void Thing_Projectile2 (int tid, int type, int angle, int speed, int vspeed, int gravity, int newtid) | *void Thing_Projectile2 (int tid, int type, int angle, int speed, int vspeed, int gravity, int newtid) | ||
*int UniqueTID ([int tid[, int limit]]) | *int UniqueTID ([int tid[, int limit]]) | ||
===Linedefs and sidedefs=== | ===Linedefs and sidedefs=== | ||
*[[GetLineRowOffset]] | |||
*[[GetLineX]] | |||
*[[GetLineY]] | |||
*[[LineSide]] | |||
*void ReplaceTextures (str oldtexturename, str newtexturename [, int flags]) | |||
*void SetLineSpecial (int lineid, int special [, int arg0 [, int arg1 [, int arg2 [, int arg3 [, int arg4]]]]]) | |||
*void SetLineTexture(int lineid, int line_side, int sidedef_texture, str texturename); | |||
===Sky=== | ===Sky=== | ||
Line 161: | Line 104: | ||
===Console=== | ===Console=== | ||
*int | *int GetCVar (str cvar) | ||
*string | *string GetCVarString (str cvar) | ||
*int GetPlayerInput (int player, int input) | *int GetPlayerInput (int player, int input) | ||
===Polyobjects=== | ===Polyobjects=== | ||
*[[GetPolyobjX]] | *[[GetPolyobjX]] | ||
*[[GetPolyobjY]] | *[[GetPolyobjY]] | ||
===Quake=== | ===Quake=== | ||
Line 174: | Line 115: | ||
===Math=== | ===Math=== | ||
*int Random (int min, int max) | |||
*int Sqrt (int number) | |||
*int | *fixed FixedSqrt (fixed number) | ||
*int | |||
* | |||
*[[VectorAngle]] | *[[VectorAngle]] | ||
*int | *int VectorLength (int x, int y) | ||
===Strings=== | ===Strings=== | ||
Line 188: | Line 127: | ||
===Level state=== | ===Level state=== | ||
*[[SetAirControl]] | *[[SetAirControl]] | ||
*[[SetAirFriction]] | *[[SetAirFriction]] | ||
[[Category:ACS]] | [[Category:ACS]] | ||
[[Category:Editing reference]] | [[Category:Editing reference]] |