Raised This Month: $51 Target: $400
 12% 

[VSCRIPT] Saving player as variables


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
andrept4
Senior Member
Join Date: Dec 2012
Location: Portugal
Old 04-04-2020 , 21:21   [VSCRIPT] Saving player as variables
Reply With Quote #1

So, in my map I'm trying to "save the player as a variable", what I'm trying to say is, I'm trying to keep the player entity index saved into a variable, I'm doing it like this at the moment:

player = activator.entindex();

So far so good, the problem is, how am I going to use refer to the entity using it's index? I can't find anything in the documentation regarding this.

Also, does anyone know a better way of doing this?
__________________
andrept4 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode