Difference between revisions of "Ped Event"

From GTAMods Wiki
Jump to navigation Jump to search
m (Mission Script)
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 207: Line 208:
 
|}
 
|}
  
==Mission Script==
+
== Mission Script ==
You can use the following opcodes to do stuff to events.<br>
+
You can use the following [[opcode]]s to do stuff to events.
* [[074F]] &ndash; Checks if an event is happening on the actor ''(doesnt work?!)''<br>
+
* [[074F]] &ndash; Checks if an event is happening on the actor ''(doesnt work?!)''
 
* [[080E]] &ndash; Gets the actor's current event
 
* [[080E]] &ndash; Gets the actor's current event
  
Also there are various [[native function]]s in [[:Category:GTA_4|GTA IV]] to use decision markers:
+
Also there are various [[native function]]s in [[GTA IV]] to use decision markers:
 
* [[ADD_CHAR_DECISION_MAKER_EVENT_RESPONSE]]
 
* [[ADD_CHAR_DECISION_MAKER_EVENT_RESPONSE]]
  
 
{{Incomplete}}
 
{{Incomplete}}
  
==External Link==
+
== External Link ==
 
* {{GTAF|179930|Ped Events}}
 
* {{GTAF|179930|Ped Events}}
  
[[Category:GTA SA]][[Category:GTA_4]][[Category:Mission Script]]
+
[[Category:Mission Script]]
  
{{SA-navi}}
+
{{GTA4-navi|state=autocollapse}}
{{GTA4-navi}}
+
{{SA-navi|state=autocollapse}}

Revision as of 06:39, 25 February 2009

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 while attempting to enter a vehicle
15 No? 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 while attempting to enter 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 Waterhosed
65 No? EVENT_SEEN_PANICKED_PED
66 Yes 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 – Checks if an event is happening on the actor (doesnt work?!)
  • 080E – 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.

External Link