Posts: 161
Threads: 34
Joined: Jul 2012
Reputation:
0
Hello, i want optimize my script
I did a system for pick pickup when players are on a vehicle, i used IsPlayerInRangeOfPoint but i want know if i use a timer 500 ms or i use OnPlayerUpdate for detect when a player is near a pickup. One timer at 500 ms is good for detect this?
Posts: 161
Threads: 34
Joined: Jul 2012
Reputation:
0
No i used Pickup Pickupable when in a vehicle, PickupTypes 14 is dosnt good
Posts: 1,670
Threads: 15
Joined: Mar 2012
Reputation:
0
then i would recommend you start using a settimer instead of callback onplayerupdate.
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
Use pickup ID 1, create a rectangle around the x,y,z and then when they leave the rectangle with a radius of 1 that's when they leave the pickup.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Just use pickups like they're meant to be used. Use the 'pickupable from vehicles' type.
Posts: 161
Threads: 34
Joined: Jul 2012
Reputation:
0
My problem is if i used 'pickupable from vehicles' type he destroy pickup when i take the pickup, maybe it would recreate the pickup when i take a pickup with a vehicle? And Other 'pickupable from vehicles' Dosent detect when i take a pickup whith a vehicle