Difference between revisions of "Ped Event"
Jump to navigation
Jump to search
m (→List of Ped Events) |
|||
| (17 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
'''Ped event''' is an event that is happening on a ped or a vehicle the ped is in. Some of the events with descriptions are listed in the <code>data\Decision\PedEvent.txt</code> file. | '''Ped event''' is an event that is happening on a ped or a vehicle the ped is in. Some of the events with descriptions are listed in the <code>data\Decision\PedEvent.txt</code> file. | ||
| − | ==List of Ped Events== | + | |
| − | {| | + | == List of Ped Events == |
| + | {|{{Prettytable}} | ||
! ID | ! ID | ||
! Works for player? | ! Works for player? | ||
| Line 12: | Line 13: | ||
| 4 | | 4 | ||
| Yes | | Yes | ||
| − | | Brushed/touched by ped? | + | | EVENT_PLAYER_COLLISION_WITH_PED, Brushed/touched by ped? |
|- | |- | ||
| 7 | | 7 | ||
| Line 28: | Line 29: | ||
| 10 | | 10 | ||
| Yes | | Yes | ||
| − | | | + | | EVENT_DEATH |
|- | |- | ||
| 11 | | 11 | ||
| Line 40: | Line 41: | ||
| 13 | | 13 | ||
| Yes | | Yes | ||
| − | | EVENT_POTENTIAL_WALK_INTO_PED, potential to walk into a ped | + | | EVENT_POTENTIAL_WALK_INTO_PED, potential to walk into a ped |
|- | |- | ||
| 15 | | 15 | ||
| − | | | + | | Yes |
| EVENT_SHOT_FIRED | | EVENT_SHOT_FIRED | ||
|- | |- | ||
| Line 65: | Line 66: | ||
| No | | No | ||
| EVENT_GUN_AIMED_AT, being aimed by CJ | | EVENT_GUN_AIMED_AT, being aimed by CJ | ||
| + | |- | ||
| + | | 32 | ||
| + | | No | ||
| + | | EVENT_SCRIPT_COMMAND, never generated as being ignored by the game engine | ||
|- | |- | ||
| 33 | | 33 | ||
| Yes | | Yes | ||
| − | | Landing any jump on foot | + | | EVENT_IN_AIR, Landing any jump on foot |
|- | |- | ||
| 36 | | 36 | ||
| Line 140: | Line 145: | ||
| 56 | | 56 | ||
| Yes | | Yes | ||
| − | | EVENT_POTENTIAL_WALK_INTO_VEHICLE, potential to walk into | + | | EVENT_POTENTIAL_WALK_INTO_VEHICLE, potential to walk into a vehicle |
|- | |- | ||
| 58 | | 58 | ||
| Yes | | Yes | ||
| − | | Stupidly walk into fire, didn't test other ped | + | | EVENT_ON_FIRE, Stupidly walk into fire, didn't test other ped |
|- | |- | ||
| 59 | | 59 | ||
| Line 164: | Line 169: | ||
| 64 | | 64 | ||
| Yes | | Yes | ||
| − | | Waterhosed | + | | EVENT_HIT_BY_WATER_CANNON, Waterhosed |
|- | |- | ||
| 65 | | 65 | ||
| Line 172: | Line 177: | ||
| 66 | | 66 | ||
| Yes | | Yes | ||
| − | | Begin swimming | + | | EVENT_IN_WATER, Begin swimming |
|- | |- | ||
| 71 | | 71 | ||
| Line 200: | Line 205: | ||
| 93 | | 93 | ||
| Yes | | Yes | ||
| − | | Caught in collision nightmare, only way to move is to jump | + | | EVENT_STUCK_IN_AIR, Caught in collision nightmare, only way to move is to jump |
|} | |} | ||
| + | |||
| + | == Mission Script == | ||
| + | You can use the following [[opcode]]s to do stuff to events. | ||
| + | * [[074F|074F (IS_CHAR_RESPONDING_TO_EVENT)]] – Checks if an event is happening on the actor ''(doesnt work?!)'' | ||
| + | * [[080E|080E (GET_CHAR_HIGHEST_PRIORITY_EVENT)]] – Gets the actor's current event | ||
| + | |||
| + | Also there are various [[native function]]s in [[GTA IV]] to use decision markers: | ||
| + | * [[ADD_CHAR_DECISION_MAKER_EVENT_RESPONSE]] | ||
| + | |||
| + | {{Incomplete}} | ||
| + | |||
| + | ==See also== | ||
| + | * [[Decision Maker]] | ||
| + | |||
| + | == External link == | ||
| + | * {{GTAF|179930|Ped Events}} | ||
| + | |||
| + | {{N|4|SA}} | ||
| + | [[Category:Mission Script]] | ||
Latest revision as of 21:55, 11 June 2017
Ped event is an event that is happening on a ped or a vehicle the ped is in. Some of the events with descriptions are listed in the data\Decision\PedEvent.txt file.
List of Ped Events
| ID | Works for player? | Description |
|---|---|---|
| 0 | Yes | No specific event taking place |
| 4 | Yes | EVENT_PLAYER_COLLISION_WITH_PED, Brushed/touched by ped? |
| 7 | Yes | EVENT_DRAGGED_OUT_CAR, being dragged out of a vehicle by someone |
| 8 | Yes | EVENT_KNOCK_OFF_BIKE, fallen or knocked off a bike |
| 9 | Yes | EVENT_DAMAGE, received damage in any way |
| 10 | Yes | EVENT_DEATH |
| 11 | Yes | EVENT_DEAD_PED, a ped just died |
| 12 | Yes | EVENT_POTENTIAL_GET_RUN_OVER, potential to get or is being run over by a vehicle |
| 13 | Yes | EVENT_POTENTIAL_WALK_INTO_PED, potential to walk into a ped |
| 15 | Yes | EVENT_SHOT_FIRED |
| 17 | No? | EVENT_PED_ENTERED_MY_VEHICLE |
| 20 | Yes | EVENT_SEXY_PED, sees sexy ped, one of the most common event |
| 27 | No? | EVENT_ATTRACTOR |
| 30 | No? | EVENT_VEHICLE_THREAT |
| 31 | No | EVENT_GUN_AIMED_AT, being aimed by CJ |
| 32 | No | EVENT_SCRIPT_COMMAND, never generated as being ignored by the game engine |
| 33 | Yes | EVENT_IN_AIR, Landing any jump on foot |
| 36 | No? | EVENT_ACQUAINTANCE_PED_HATE |
| 37 | No? | EVENT_ACQUAINTANCE_PED_DISLIKE |
| 38 | No? | EVENT_ACQUAINTANCE_PED_LIKE |
| 39 | No? | EVENT_ACQUAINTANCE_PED_RESPECT |
| 41 | Yes | EVENT_VEHICLE_DAMAGE_WEAPON, the ped's vehicle is hit by a weapon |
| 42 | No? | EVENT_SPECIAL |
| 43 | No? | EVENT_GOT_KNOCKED_OVER_BY_CAR |
| 44 | Yes? | EVENT_POTENTIAL_WALK_INTO_OBJECT, as in event 13 |
| 46 | Yes? | EVENT_POTENTIAL_WALK_INTO_FIRE, as in event 13 |
| 48 | No? | EVENT_SCRIPTED_ATTRACTOR |
| 49 | No? | EVENT_SHOT_FIRED_WHIZZED_BY |
| 50 | No | EVENT_LOW_ANGER_AT_PLAYER |
| 51 | No | EVENT_HIGH_ANGER_AT_PLAYER |
| 52 | Yes | EVENT_HEALTH_REALLY_LOW, health really low |
| 53 | Yes | EVENT_HEALTH_LOW, health low |
| 54 | No? | EVENT_LEADER_ENTERED_CAR_AS_DRIVER |
| 55 | No? | EVENT_LEADER_EXITED_CAR_AS_DRIVER |
| 56 | Yes | EVENT_POTENTIAL_WALK_INTO_VEHICLE, potential to walk into a vehicle |
| 58 | Yes | EVENT_ON_FIRE, Stupidly walk into fire, didn't test other ped |
| 59 | Yes | EVENT_FIRE_NEARBY, any fire is nearby about 20 meters |
| 61 | No? | EVENT_SOUND_LOUD |
| 62 | No? | EVENT_SOUND_QUIET |
| 63 | No? | EVENT_ACQUAINTANCE_PED_HATE_BADLY_LIT |
| 64 | Yes | EVENT_HIT_BY_WATER_CANNON, Waterhosed |
| 65 | No? | EVENT_SEEN_PANICKED_PED |
| 66 | Yes | EVENT_IN_WATER, Begin swimming |
| 71 | ? | EVENT_PLAYER_COMMAND_TO_GROUP |
| 72 | Yes | EVENT_SEEN_COP, is seen by cop, one of the most common event |
| 73 | Yes | EVENT_VEHICLE_DAMAGE_COLLISION, vehicle damaged by other ped, has to be more than minor damage |
| 75 | Yes | EVENT_DANGER |
| 76 | ? | EVENT_PLAYER_COMMAND_TO_GROUP_GATHER |
| 79 | ? | EVENT_VEHICLE_ON_FIRE |
| 93 | Yes | EVENT_STUCK_IN_AIR, Caught in collision nightmare, only way to move is to jump |
Mission Script
You can use the following opcodes to do stuff to events.
- 074F (IS_CHAR_RESPONDING_TO_EVENT) – Checks if an event is happening on the actor (doesnt work?!)
- 080E (GET_CHAR_HIGHEST_PRIORITY_EVENT) – Gets the actor's current event
Also there are various native functions in GTA IV to use decision markers:
This section is incomplete. You can help by fixing and expanding it.
See also
External link
GTAForums: Ped Events
| File Formats | .dat • .gxt • .ide • .img • .ipl • .nod • .sco • .rpf • .rrr • .wad • .wbd/.wbn • .wdd • .wdr • .wft • .whm • .wpl • .wtd |
| Documentation | Audio • Bink Video • Cryptography • Cutscenes • GXT Text • Image listing • Keycodes • Map Listing • Native functions • Paths • Radar Blips • Radio Stations • Saves • Scenarios • VTable • Weapons |
| Tools | ASI Loader • ENBSeries • SCO Toolbox • G-Texture • GIMS IV • Ingame WPL Editor • IV Needle • OpenIV • SparkIV • XLiveLess • WPL Manager • X Mod Installer Alice • C++ Script Hook • .NET Script Hook • SC-CL • Scocl |
| Tutorials | Importing Textures with OpenIV • Importing Textures with SparkIV |
| Multiplayer | GTA Connected • CitizenMP:IV Reloaded • IV Multiplayer • Four Multiplayer • Gostown IV |
| Useful links | Community portal • Discussion forums • Modding forums • Mods on GTAGarage.com |