Requested Functions and Events: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 2: Line 2:


onVehicleCreated or an equivalent... shouldn't be too hard? -Robhol (14:15 Jul 6, 08)
onVehicleCreated or an equivalent... shouldn't be too hard? -Robhol (14:15 Jul 6, 08)
 
:If we did it, it'd be onElementCreated - what do you want this for? [[User:EAi|eAi]] 08:58, 7 July 2008 (CDT)
I ask for a function that detects if a ped is on floor, eg. '''isPedOnFloor(ped thePed)''', thanks. --<span style="font-family:Courier New, Courier, monospace">[[User:Shadd|Shadd]]</span><sub>([[User_talk:Shadd|In caso di emergenza rompere le scatole]])</sub> 11:29, 15 June 2008 (CDT)
I ask for a function that detects if a ped is on floor, eg. '''isPedOnFloor(ped thePed)''', thanks. --<span style="font-family:Courier New, Courier, monospace">[[User:Shadd|Shadd]]</span><sub>([[User_talk:Shadd|In caso di emergenza rompere le scatole]])</sub> 11:29, 15 June 2008 (CDT)
: [[isPedOnGround]]? [[User:Awwu|Awwu]] 12:58, 15 June 2008 (CDT)
: [[isPedOnGround]]? [[User:Awwu|Awwu]] 12:58, 15 June 2008 (CDT)

Revision as of 13:58, 7 July 2008

Server-side

onVehicleCreated or an equivalent... shouldn't be too hard? -Robhol (14:15 Jul 6, 08)

If we did it, it'd be onElementCreated - what do you want this for? eAi 08:58, 7 July 2008 (CDT)

I ask for a function that detects if a ped is on floor, eg. isPedOnFloor(ped thePed), thanks. --Shadd(In caso di emergenza rompere le scatole) 11:29, 15 June 2008 (CDT)

isPedOnGround? Awwu 12:58, 15 June 2008 (CDT)
I need to know if the player has its back touching the ground, not if it's simply "on ground". --Shadd(In caso di emergenza rompere le scatole) 14:16, 16 June 2008 (CDT)
Check what task the player has, they should have TASK_COMPLEX_FALL_AND_GET_UP or TASK_COMPLEX_FALL_AND_STAY_DOWN... eAi 19:12, 16 June 2008 (CDT)
Thanks. What task does player have after being hitten by a melee attack that cause it to fall down? Would "TASK_SIMPLE_BE_KICKED_ON_GROUND" and "TASK_SIMPLE_GET_UP" work? --Shadd(In caso di emergenza rompere le scatole) 09:35, 17 June 2008 (CDT)
Try it, I'm not entirely sure. You should be able to produce some code to show the player's current tasks very easily... eAi 19:20, 17 June 2008 (CDT)
My goal is to edit the standard damage of the attacks, in this case i have to know when player is on ground to cause higher damage. However it doesn't seem to work, when i hit the player it simply gets up without animation with no damage. --Shadd(In caso di emergenza rompere le scatole) 19:10, 19 June 2008 (CDT)