#1 03-01-2010 22:10

robertom2002
Registered: 17-12-2009
Posts: 22

HUGE retarded problem

Sorry for my topic's rush guys but i have a stupid problem

I just want to make the player go  +90.0 m up and + 25.0 in front but it doesnt work !
This is not all the script but here it doesn't works ,it goes forward but not up (in air) !

wait 0
if and
0AB0:  key_pressed 9
0AB0:  key_pressed 87
0819: 0@ = actor $PLAYER_ACTOR distance_from_ground
0@ > 5.0
jf @swing_1
0992: set_player $PLAYER_CHAR weapons_scrollable 0
0812: AS_actor $PLAYER_ACTOR perform_animation "DROWN" IFP_file "PED" 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time 500 // versionB
0393: actor $PLAYER_ACTOR perform_animation "DROWN" at 0.01 times_normal_rate
wait 25
0614: set_actor $PLAYER_ACTOR animation "DROWN" progress_to 0.20
Actor.StorePos($PLAYER_ACTOR, 1@, 2@, 3@)
04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 25.0 0.0
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 90.0
0612: set_actor $PLAYER_ACTOR animation "DROWN" paused 1


.............

Please help !

Offline

#2 05-01-2010 13:41

robertom2002
Registered: 17-12-2009
Posts: 22

Re: HUGE retarded problem

Anyone ... ?

Offline

#3 08-01-2010 18:04

ZAZ
Registered: 05-12-2007
Posts: 55

Re: HUGE retarded problem

robertom2002 wrote:

Anyone ... ?

opcode 083C: should run in a loop
or just try this:

04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 25.0 0.0
0063: 4@ -= 1@ // (float)
0063: 5@ -= 2@ // (float)
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 90.0
wait 250
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 90.0
wait 250
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 90.0
wait 250
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 90.0
wait 250
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 90.0
wait 250
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 90.0

Offline

Board footer

Powered by FluxBB